/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.purpose.bean.ResponsibilityTemplateBean;
import org.swan.bean.MessageBean;

public interface ResponsibilityTemplateService {
    /**
     * 列表查询
     * @param corpCode 水司code
     * @param yearNum 年份
     * @param indexName 配置名称
     * @param page 当前页
     * @param pageSize  每页条数
     * @return
     */
    MessageBean queryForList(String corpCode, Integer yearNum, String indexName, Integer page, Integer pageSize);

    /**
     * 根据ID查询职责模版
     * @param id
     * @return
     */
    MessageBean queryById(String id);

    /**
     * 根据ID删除职责模版
     * @param id
     * @return
     */
    MessageBean deleteById(String id);

    /**
     * 新增职责模版
     * @param user
     * @param bean 职责模版bean
     * @param responsibilitiesLibIds 职责项id字符串(以逗号分隔)
     * @return
     */
    MessageBean insert(StaffBean user, ResponsibilityTemplateBean bean, String responsibilitiesLibIds);

    /**
     * 修改职责模版
     * @param user
     * @param bean 职责模版bean
     * @param responsibilitiesLibIds 职责项id字符串(以逗号分隔)
     * @return
     */
    MessageBean update(StaffBean user, ResponsibilityTemplateBean bean, String responsibilitiesLibIds);
}
